<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Tour extends Public_Controller {

	public function __construct()
	{
  		parent::Public_Controller();
  		$this->lang->load('home/home');
  		$this->lang->load('home/tour');
	}
	
	public function index()
	{
	}
	
	public function info($article_id){
		
		$this->load->model('articles/articles_model', 'articles_m');
		$article = $this->articles_m->_get(intval($article_id), CURRENT_LANGUAGE);
		if(empty($article)){
			redirect(site_url());
		}
		p($article);
		$this->template->set('layout','home')->load('index.php', array(
				'article' => $article
		));
	}
}